// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:BGPWS_10
wait 0 
if
   Actor.DrivingVehicleType($PLAYER_ACTOR, 592)
else_jump @BGPWS_10 
0@ = Actor.CurrentCar($PLAYER_ACTOR)
02E3: 2@ = car 0@ speed 
06BE: 5@ = car 0@ y_angle 
077D: 6@ = car 0@ x_angle 
Car.StorePos(0@, 21@, 22@, 15@)
092E: get_water_height_at 21@ 22@ ignore_waves 0 store_to 16@ 
16@ += 250.0 
if and
01F3:   car 0@ in_air 
  2@ >= 250.0 
else_jump @BGPWS_11 

:BGPWS_11
if and
0035:   16@ >= 15@ // (float) 
  15@ >= 0.0 
else_jump @BGPWS_10 
1@ = Audiostream.Load3D("bgpws\bgpws.mp3") 
Audiostream.PerformAction(1@, AudioStreamState.Play)
Audiostream.LinkToCar(1@, 0@)
Audiostream.Loop(1@, 1)
0ABC: set_audio_stream 1@ volume 6.0

:loop
wait 0
if
0AB0:	key_pressed 16 
jf @END
jump @loop

:END
audiostream.Release(1@)
jump @BGPWS_10    